package com.assignwork.service;

import com.assignwork.dto.VoyageShipInfoSubmitDTO;
import com.assignwork.entity.VoyageShipInfo;
import com.assignwork.vo.VoyageShipInfoVO;
import org.springblade.core.mp.base.BaseService;

/**
 * 船舶信息服务类
 */
public interface IVoyageShipInfoService extends BaseService<VoyageShipInfo> {

    /**
     * 根据航次id查询船舶信息
     * @param voyageId 航次ID
     * @return VoyageShipInfoVO
     * @author dujianyu
     * @since 2023/8/17 8:56
     */
    VoyageShipInfoVO getDetailByVoyageId(String voyageId);

    /**
     * 新增或修改
     * @param dto 提交参数
     * @return Boolean
     * @author dujianyu
     * @since 2023/8/17 9:00
     */
    Boolean submitVoyageShipInfo(VoyageShipInfoSubmitDTO dto);
}